# Contributor: rahmanshaber <rahmanshaber@yahoo.com>
# Maintainer: rahmanshaber <rahmanshaber@yahoo.com>
pkgname=corearchiver
pkgver=4.4.0
pkgrel=2
pkgdesc="Archiver from C-Suite to create and extract archives"
arch="all"
url="https://gitlab.com/cubocore"
license="GPL-3.0-or-later"
depends="qt5-qtsvg"
makedepends="qt5-qtbase-dev libcprime-dev libarchive-qt-dev cmake ninja"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/cubocore/corearchiver/-/archive/v$pkgver/corearchiver-v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check"

build() {
	cmake -B build	-G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
b9e005bb92ac3ab48dc8700548ef529252192ac70592fb80de28d4e22ce251ebd5e10f67737b0fc7a9cb46c80dd1a10b67a71aca22de15844ba7299c88ab57c3  corearchiver-4.4.0.tar.gz
"
